package com.zhuoyue.system.mapper;

import com.zhuoyue.common.annotation.DataSource;
import com.zhuoyue.system.domain.TblUserApiReqCount;
import com.zhuoyue.system.domain.po.SelectTimePo;

import java.util.List;

import static com.zhuoyue.common.enums.DataSourceType.SLAVE2;


/**
 * @author zhanghui
 */
@DataSource(SLAVE2)
public interface TblUserReqCountMapper {

    /**
     * 查询【请填写功能名称】列表
     *
     * @param tblUserReqCount 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    List<TblUserApiReqCount> selectTblUserReqCountList(TblUserApiReqCount tblUserReqCount);

    /**
     * 查询接口访问的总和
     *
     * @return
     */
    Integer getAccessCount(SelectTimePo selectTimePo);

    /**
     * 根据组织编码查询api接口请求的次数
     *
     * @param orgCode
     * @return
     */
    Integer getUserApiReqCountByOrgCode(SelectTimePo selectTimePo);
}
